import { http } from "./http";

/** 上传图片 */
export function uploadImage(file: File) {
    const formData = new FormData();
    formData.append('headImage', file);
    return http.post('/upload', formData, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    });
}